import { $Http } from '@/config/service/http';

export enum Api {
  planDelBatch = '/dms/archivesCollectPlan/delBatch', // 批量删除
  planDelete = '/dms/archivesCollectPlan/delete',
  planGet = '/dms/archivesCollectPlan/get',
  planPage = '/dms/archivesCollectPlan/page',
  planSave = '/dms/archivesCollectPlan/save',
  planUpdateStatus = '/dms/archivesCollectPlan/updateStatus'
}

export const planDelete = (params) => {
  return $Http.api(Api.planDelete, params, 'post');
};

export const planGet = (id) => {
  return $Http.api(Api.planGet + '/' + id, null, 'get');
};

export const planPage = (params) => {
  return $Http.api(Api.planPage, params, 'post');
};

export const planSave = (params) => {
  return $Http.api(Api.planSave, params, 'post');
};

export const planUpdateStatus = (params) => {
  return $Http.api(Api.planUpdateStatus, params, 'post');
};
